﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="loginControl.ascx.cs" Inherits="controls_loginControl" %>
<style type="text/css">
    .style1
    {
        height: 26px;
    }
    .style2
    {
        height: 26px;
        width: 110px;
    }
    .style3
    {
        width: 110px;
    }
    .style4
    {
        height: 26px;
        width: 138px;
    }
    .style5
    {
        width: 138px;
    }
    .style6
    {
        height: 23px;
    }
</style>
<table style="width: 383px">
    <tr>
        <td class="style2"><asp:Label AssociatedControlID="txtTaiKhoan" ID="Label1" runat="server">Tài khoản</asp:Label></td>
        <td class="style4"><asp:TextBox runat="server" ID="txtTaiKhoan" /></td>
        <td class="style1">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtTaiKhoan" CssClass="error" 
                ErrorMessage="RequiredFieldValidator" ToolTip="Trường này là bắt buộc!">*</asp:RequiredFieldValidator>
        </td>
    </tr>
     <tr>
        <td class="style3"><asp:Label ID="Label2" AssociatedControlID="txtMatKhau" runat="server">Tài khoản</asp:Label></td>
        <td class="style5"><asp:TextBox TextMode="Password" runat="server" ID="txtMatKhau" /></td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtMatKhau" CssClass="error" 
                ErrorMessage="RequiredFieldValidator" ToolTip="Trường này là bắt buộc!">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="style6"><asp:Literal id="msg" runat="server"/></td>
    </tr>
    <tr>
        <td class="style3"><asp:Button ID="btnLogin" runat="server" text="Đăng nhập" 
                onclick="btnLogin_Click"/></td>
        <td class="style5"><a href="#">Quên mật khẩu</a></td>
    </tr>
</table>